/**
* Copyright(c) 2019 六六微科技 Co. Ltd.
* All right reserved.
/*
* 会员投诉模块
* @author 小六子
* @date 2019年9月22日
*/
import axios from '../../axios'

// 保存
export const saveOrUpdate = (data) => {
  return axios({
    url: '/aftersale/complaint/saveOrUpdate',
    method: 'post',
    data
  })
}
// 获取
export const get = (id) => {
  return axios({
    url: '/aftersale/complaint/get',
    method: 'get',
    params: {
      id: id
    }
  })
}
// 删除
export const remove = (id) => {
  return axios({
    url: '/aftersale/complaint/remove',
    method: 'get',
    params: {
      id: id
    }
  })
}
// 批量删除
export const batchRemove = (data) => {
  return axios({
    url: '/aftersale/complaint/remove',
    method: 'post',
    data
  })
}
// 查询
export const query = (data) => {
  return axios({
    url: '/aftersale/complaint/query',
    method: 'post',
    data
  })
}
